package hb.software.attendance.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import hb.software.domain.BaseEntity;

@Entity
@Table(name = "AttendanceTime") // database name
public class AttendanceTime extends BaseEntity<Long> {
	private static final long serialVersionUID = 3326031928155350874L;
	@Column
	private String constantBeginTime = "11:35:00";
	@Column
	private String constantEndTime = "12:45:00";

	public Integer BeginTimeCompare(String SignInTime) {
		Integer i = constantBeginTime.compareTo(SignInTime);
		return i;
	}

	public Integer EndTimeCompare(String SignInTime) {
		Integer i = constantEndTime.compareTo(SignInTime);
		return i;
	}

	public AttendanceTime() {

	}

	public AttendanceTime(String constantBeginTime, String constantEndTime) {
		super();
		this.constantBeginTime = constantBeginTime;
		this.constantEndTime = constantEndTime;
	}

	public String getConstantBeginTime() {
		return constantBeginTime;
	}

	public void setConstantBeginTime(String constantBeginTime) {
		this.constantBeginTime = constantBeginTime;
	}

	public String getConstantEndTime() {
		return constantEndTime;
	}

	public void setConstantEndTime(String constantEndTime) {
		this.constantEndTime = constantEndTime;
	}

}
